$(function () {
	slf.ajax({
		url: '/client/getArticle',
		type: 'get',
		param: { type: 1 },
		success: function (data) {
			console.log(data)
			var htmlArticle = '';
			if (data.res==0||data.obj.length <= 0) {
				htmlArticle += '<img src="../img/zwsj.png" alt="img" style="width:100%;">';
			}
			if (data.res==1&&data.obj.length > 0) {
				for (var i = 0, b = data.obj.length; i < b; i++) {
					htmlArticle += '<ul class="bg-FFFBF2 am-avg-sm-1 zjdt_div_ul zjyy_div_ul radius4 margin-top borB-EF borT-EF">'+
						'<li class="dis-flex  am-margin-sm" style="display: flex;" onclick="javascript:window.location.href=\'article_details.html?article_id=' + data.obj[i].article_id + '\'">' +
						'<div class="w35 imgHeis">' +
						'<div class="img_div radius2 over-hide">'
						if(data.obj[i].article_background!=''&&data.obj[i].article_background!=null){
							htmlArticle+='<img src="'+data.obj[i].article_background+'" />'
						}else{
							htmlArticle+='<img src="'+slf.defau.courseIcon(data.obj[i].article_id)+'" />'
						}
						htmlArticle+='</div>' +
						'</div>' +
						'<div class="am-margin-left-xs w65 flex1">' +
						'<ul class="am-avg-sm-1 kcxx font12  ycsn w85">' +
						'<li class="dis-flex"><span class="w75 flex1 ycsn">' + data.obj[i].title + '</span></li>' +
						'<li class="text-9F9F9F font12 brueDatas">发布日期：' + data.obj[i].create_date + '</li>' +
						'</ul>' +
						'</div>' +
						'</li>'+
						'</ul>';
				}
			}
			$('#ululs').html(htmlArticle);
		}
	});

});